package com.qianfeng.wuyang.himalaya.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.webkit.WebView;
import android.webkit.WebViewClient;

import com.qianfeng.wuyang.himalaya.R;

public class Classify_ad_Activity extends AppCompatActivity {

    private WebView webView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_classify_ad_);

        webView= (WebView) findViewById(R.id.classify_web);
        webView.setWebViewClient(new WebViewClient());

        Intent intent=getIntent();
        String url=intent.getStringExtra("url");
        webView.loadUrl(url);

    }

    @Override
    public void onBackPressed() {
        super.onBackPressed();
        Intent intent=new Intent(this,MainActivity.class);
        startActivity(intent);
    }
}
